.singleRuleFilter {
  .conditionRelationBox {
    position: relative;
    display: block;
    height: 55px;
    margin-top: 10px;
    padding-right: 60px;

    .Dropdown {
      width: 50px;
      background: #fff;
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50px);
      display: inline-block;
      box-sizing: border-box;
      height: 55px;
      text-align: center;
      line-height: 55px;
      .Dropdown--input {
        text-align: left;
        width: 54px;
        box-sizing: border-box;
        line-height: 45px;
        color: #757575 !important;
        padding: 5px 8px;
        font-size: 13px;
        &:hover {
          i {
            color: #2196f3 !important;
          }
        }
        i {
          vertical-align: middle;
          margin-left: 6px !important;
        }
      }
    }

    .line {
      display: block;
      border-bottom: 1px solid #eaeaea;
      position: absolute;
      top: 50%;
      left: 0;
      right: 60px;
    }
  }

  .conditionItem {
    .conditionItemHeader {
      position: relative;
      &:hover {
        .relation .icon {
          visibility: visible !important;
        }
        .deleteBtn {
          visibility: visible;
        }
      }

      .columnName {
        font-size: 13px;
      }

      .deletedColumn {
        color: #f44336;
        margin-bottom: 6px;
        .icon {
          transform: rotate(90deg);
          font-size: 16px;
          margin-right: 3px;
        }
      }

      .conditionDeleteCon {
        width: 100%;
        padding-right: 42px;
        box-sizing: border-box;
        input {
          width: 100%;
          border-color: #f44336;
          background-color: #ffebeb;
        }
      }

      .columnName {
        display: inline-block;
        vertical-align: middle;
        width: 90px;
        text-align: left;
      }

      .relation {
        vertical-align: middle;
        margin-left: 14px;
        padding: 5px 4px;
        border-radius: 4px;
        color: #515151;
        font-size: 13px;
        .Dropdown--input .icon {
          vertical-align: middle;
          visibility: hidden;
        }

        &:hover {
          background-color: #e8e8e8;
        }
      }

      .deleteBtn {
        cursor: pointer;
        position: absolute;
        right: 42px;
        color: #9e9e9e;
        margin-top: 5px;
        visibility: hidden;
        i {
          font-size: 16px;
          &:hover {
            color: #f44336;
          }
        }
      }

      &.isbool {
        padding-top: 4px;
      }
    }
  }

  .conditionItemAb {
    position: absolute;
    right: 0;
    top: -2px;
  }

  .relationItemBox {
    .Dropdown--input {
      padding: 5px 0px;
      text-align: left;
      box-sizing: border-box;
      line-height: 23px;
      color: #757575 !important;
      margin-left: 8px;
      font-size: 13px;
      &:hover {
        i {
          color: #2196f3 !important;
        }
      }
      i {
        vertical-align: middle;
        margin-left: 6px !important;
      }
    }
  }

  .conditionItemContent {
    position: relative;
    display: flex;
    align-items: flex-start;
    .optionBox {
      width: 42px;
    }
    .conditionItemContentLeft {
      flex: 1;
      min-width: 0;
      display: flex;
      align-items: flex-start;
    }
    .conditionValue {
      flex: 1;
      min-width: 0;
      &.inputTextErrorBorder {
        .inputText {
          border: 1px solid #f44336;
        }
      }

      &.selectizeInputErrorBorder {
        .selectize-input {
          border: 1px solid #f44336;
        }
      }
      &.numberRangeErrorBorder {
        .numberRange > input {
          border: 1px solid #f44336;
        }
      }
      &.numberConditionErrorBorder {
        .worksheetFilterNumberCondition input {
          border: 1px solid #f44336;
        }
      }
      &.numberMinErrorBorder {
        .numberRange > div:first-child {
          input {
            border: 1px solid #f44336;
          }
        }
      }
      &.numberMaxErrorBorder {
        .numberRange > div:last-child {
          input {
            border: 1px solid #f44336;
          }
        }
      }
      &.optionConditionErrorBorder {
        .filterTagCon {
          border: 1px solid #f44336;
        }
      }
      &.userConditionErrorBorder {
        .usersCon {
          border: 1px solid #f44336;
        }
      }
      &.recordConditionErrorBorder {
        .worksheetFilterRelateRecordCondition .recordsCon {
          border: 1px solid #f44336;
        }
      }
      &.cascaderConditionErrorBorder {
        .worksheetFilterCascaderCondition .recordsCon {
          border: 1px solid #f44336;
        }
      }

      .worksheetFilterDateCondition {
        & > div {
          width: 100%;
          display: flex;
          align-items: center;
          .dateValue,
          .dateType,
          .customDate {
            flex: 1;
          }
          .dateValue,
          .customDate {
            margin-left: 10px;
            margin-top: 0 !important;
          }
          .dateValue {
            display: flex;
            align-items: center;
            .ruleDateValue {
              width: 50px !important;
            }
          }
        }
      }

      .worksheetFilterNumberCondition {
        .numberRange {
          & > div {
            flex: 1;
            min-width: 0;
            input {
              width: 100%;
            }
          }
        }
      }
    }

    .deletedColumn {
      background: #ffebeb !important;
      border-color: #f44336 !important;
    }

    .conditionRelation {
      position: absolute;
      right: 0px;
      top: 50%;
      margin-top: -14px;
      color: #9e9e9e;

      .relationType {
        display: inline-block;
        padding: 5px 20px 5px 0px;
      }

      .Dropdown--input .icon {
        margin-left: 4px !important;
        visibility: hidden;
      }

      .ming .List {
        width: 50px;
        text-align: center;
      }
    }
  }
}

.conditionDropdownMenu {
  width: 120px !important;
}
